# -*- coding: UTF-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import Select
import time,json,requests,threading


rmrb = webdriver.Firefox()
rmrb.get('http://stcn.com/')


mobile=18573122260


rm=rmrb.find_element(By.CSS_SELECTOR,".top-bar .top-bar-inner .r a[login-btn=\"\"]")
rm.click()
rm=rmrb.find_element(By.CSS_SELECTOR,".pop-window.login-pop-window .switch-login-type-tab span:nth-of-type(2)")
rm.click()
rm=rmrb.find_element(By.CSS_SELECTOR,".login-phone-code-in")
rm.send_keys(mobile)

time.sleep(10)
while(True):
	rm=rmrb.find_element(By.CSS_SELECTOR,".login-send-phone-code-btn.send-phone-code-btn")
	rm.click()
	time.sleep(60)